<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div id="main" style="width: 600px;height:400px;"></div>
<script src="http_cdn.jsdelivr.net_npm_echarts_dist_echarts.js"></script>
<script type="text/javascript">
    let myChart = echarts.init(document.getElementById('main'));
    let option = {
        series : [
            {
                name: '访问来源',
                type: 'pie', // 或 'bar' 来创建柱状图
                radius: '55%',
                data:[
                    {value:235, name:'视频广告'},
                    {value:274, name:'联盟广告'},
                    {value:310, name:'邮件营销'}
                ]
            }
        ]
    };
    myChart.setOption(option);
</script>


</body>
</html>